package com.threaddemo1;

public class RunnableTest1 {
    public static void main(String[] args) {
        RunnableDemo1 r1 = new RunnableDemo1();
        Thread t1 = new Thread(r1);
        t1.start();

        Thread t2 = new Thread(new RunnableDemo1());
        t2.start();

        Thread t3 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println(Thread.currentThread().getName());
            }
        });
        t3.start();

    }
}
